<%@page pageEncoding="utf-8" %>
<%@ page contentType="text/html;charset=utf-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>添加收藏 -- 收藏一生网络收藏夹</title>
    <link href="${Root }/css/fav.css"  rel="stylesheet" type="text/css"/>
    <script type="text/javascript" charset="utf-8" language=javascript src="${Root }/js/jquery-1.4.2.js" ></script>
   <script type="text/javascript">
   
   		function hide1(){
   		var ish=$("#tr4").is(":hidden");
   			if(ish){
	   			for(var i=1;i<8;i++){
	   				$("#tr"+i).show();
	   			}
	   			$("#retitle").val("隐藏更多");
   			}else{
	   			for(var i=1;i<8;i++){
	   				$("#tr"+i).hide();
	   			}
	   			$("#retitle").val("展开更多");
   			}
   		}
   </script>
</head>
<body style="margin-top:15%;margin-left:0px;" onload="hide1();">
<div style="margin-top:2px;margin-left:0px;text-align:left;align:center" >
	<div style="margin-left:25%;width:780px;text-align:left;">
		<div style="float:left;width:60%;">
		<form name="AddFavForm" method="post" action="${Root}/savelink.action" onsubmit="return submitValidator(document.AddFavForm,3);" >
		<input type="hidden" name="linkInfo.tipId" />
		<table style=" border: 6px solid #7EC8EA;"  width=100%>
							<tr>
								<th width=50>
									网址:
								</th>
								<td>
									<input datatype="Require"  msg="网址为必填项" name="linkInfo.linkAddress" id="url" style="width: 280px" value="${linkInfo.linkAddress }" maxlength="300"/>
									&nbsp;&nbsp;
									<span class=notice>*</span>&nbsp;&nbsp;
									<input name="retitle" type="button" class="button" id="retitle"
										onclick="hide1();" value="展开更多" />
								</td>
							</tr>
							<tr>
								<th>
									标题:
								</th>
								<td>
									<input datatype="Require"  msg="标题为必填项" name="linkInfo.linkTitle" value="${linkInfo.linkTitle }"  style="width: 280px" maxlength="100" />
									&nbsp;&nbsp;
									<span class=notice>*</span>&nbsp;&nbsp;&nbsp;&nbsp;
								</td>
							</tr>
							<tr  >
								<th>
									便签:
								</th>
								<td>
									<input name="linkInfo.tip.tip_name" id="tags" type="text" value=""
										style="width: 280px" />
								</td>
							</tr>
							<tr id="tr4">
								<th>
									简介:
								</th>
								<td>
									<textarea name="linkInfo.linkIntro" id="intro" cols=39 rows=4
										style="width: 280px">${linkInfo.linkIntro }</textarea>
								</td>
							</tr>
							<tr id="tr5">
								<th>
									私密
									<br />
									备注:
								</th>
								<td>
									<textarea name="linkInfo.remark" id="beizhu" cols=39 rows=4
										style="width: 280px"></textarea>
								</td>
							</tr>
							<tr id="tr6">
								<td></td>
								<td>
									私密备注，仅自己可见，用来备注网站帐号等信息!
								</td>
							</tr>
							<tr id="tr7">
								<th>
									状态:
								</th>
								<td>
									<input type=radio value="false" name="linkInfo.isPrivate" id=ispub checked
										style="border: 0px" />
									公开&nbsp;&nbsp;
									<input type=radio value="true" name="linkInfo.isPrivate" id=ispub
										style="border: 0px" />
									私有(只有我可看见)
								</td>
							</tr>
							<tr>
								<td colspan=2 align="center">
									<input type="submit" class="button" id="zhai" value="保存收藏" />
							
							<tr>
								<td colspan=2 height=90>
									<img src="${Root }/images/logo.gif" />
									<span class="forOther">网页地址将保存到 </span>
									<a href="${Root }/index.jsp" target=_blank>http://www.shouchang13.com/</a>
								</td>
							</tr>
						</table>
		</form>
		</div>
						
	</div>
</div>


</body>
</html>

